﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteWithControlAccess.Master" Inherits="ProjetoComperio.SystemFramework.Web.ComperioViewPage<ProjetoComperio.DataLayer.Entities.Subject>" %>

<%@ Import Namespace="ProjetoComperio.Presentation.Web.GlobalResources.HtmlHelper" %>
<%@ Import Namespace="ProjetoComperio.DataLayer.Entities" %>
<%@ Import Namespace="Telerik.Web.Mvc" %>
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Nova Discussão</h2>
    <%           
        using (Html.BeginForm())
        { %>
    <table>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(subject => subject.Title)%>
                </div>
                <br />
                <div class="editor-field">
                    <%: Html.TextBoxFor(subject => subject.Title)%>
                    <%: Html.ValidationImage(subject => subject.Title)%>
                </div>
            </td>
        </tr> 
        <tr> 
        <td> 
         &nbsp&nbsp
        </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(subject => subject.Message)%>
                </div>
                <br />
                <div align="center">
                <%: Html.TextAreaFor(subject => subject.Message, new { @style = "height:150px;width:500px", @class = "TextBox" })%>
                </div>
            </td>
            <td>
                <%: Html.ValidationImage(subject => subject.Message)%>
            </td>
        </tr>
        <tr align="right">
            <td>
                <%= Html.CommandField(true, "''")%>
            </td>
        </tr>
    </table>
    <%} %> 
    <br />
    <br />
</asp:Content>
